<?php
/**
 * Created by PhpStorm.
 * User: 王新宇
 * Date: 2021/11/9
 * Time: 15:26
 */

namespace app\admin\controller;
use app\admin\model\OrderStatus;
use think\facade\View;
use think\facade\Request;


class order
{
    public function order_list()
    {
        $post=Request::param();

        View::assign($post);
        $where=[];

        if (isset($post['keywords']) && $post['keywords'] <> '')
            $where['keywords']=$post['keywords'];
        if (isset($post['cid']) && $post['cid'] <> '')
            $where['cid']=$post['cid'];



        $list = \app\admin\model\Order::getOrderList($where);
        View::assign('list',$list);
         $arr = OrderStatus::getOrderStatus();
        View::assign('arr',$arr);

        return view();
    }
}